package com.zqwzd.service.impl;

import java.util.List;
import java.util.Map;

import com.zqwzd.dao.IUserDao;
import com.zqwzd.entity.User;
import com.zqwzd.service.IUserService;

public class UserServiceImpl implements IUserService {
	private IUserDao userDao;
	
	public int countAll() {
		
		return userDao.countAll();
	}
	
	public void addUser(User user) {
		userDao.addUser(user);
	}

	public void delUser(User user) {
		userDao.delUser(user);
		
	}
	public List<User> queryPage(Map<String, Object> param) {
		return userDao.queryPage(param);
	}
	public User login(User user) {
		return userDao.login(user);
	}

	public List<User> getAllUser() {
		return userDao.getAllUser();
	}

	public IUserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}
	
	
}
